#!/usr/bin/node

const EventEmitter = require('events').EventEmitter;

function Radio(station) {
  EventEmitter.call(this);
  var self = this;

  for(let i in EventEmitter.prototype){
    this[i] = EventEmitter.prototype[i];
  }

  setTimeout(()=>{
    self.emit('open',station);
  },0);

  setTimeout(()=>{
    self.emit('stop',station);
  },3000);
}

module.exports = Radio;
